<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"  %>

<html>
<head>
	<script type="text/javascript">
		function fnLoginErrorMsg() {
			alert('아이디나 비밀번호가 일치하지 않습니다.');	
		}
		
		$(document).ready(function() {
			var strError = "${param.error}";
			if (strError == "true") {
				fnLoginErrorMsg();
			}
		});	
	</script>
</head>
<body>

<div class="intro">

	<div class="login_box">
		<form id="id_frmLogin" action="j_spring_security_check" method="post">
			<fieldset>
				<legend>로그인</legend>
				
					<div class="forms">
						<label for="j_username"><img src="http://static.naver.com/groupware/2010/label_intro_id.gif" width="10" height="8" alt="ID"></label>
						<input type="text" id="j_username" name="j_username" value="" class="input_txt" /><!-- label for와 input id는 동일하게 처리 -->
						<br>
						<label for="j_password"><img src="http://static.naver.com/groupware/2010/label_intro_pw.gif" width="54" height="8" alt="PASSWORD"></label>
						<input type="password" id="j_password" name="j_password" value="" class="input_txt" /><!-- label for와 input id는 동일하게 처리 -->
					</div>
							
					<input type="image" src="http://static.naver.com/groupware/2010/btn_intro_login.gif" alt="로그인" class="btn">			
			</fieldset>
		</form>
		
	</div>
	

	
	

</div>


</body>
</html>